<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //-----------------------------------------------------------------------------------
        var arr=[6,7,1,2,3,4,5,22]
         //Array.includes()//
         var a=arr.includes(15)//检查数组中是否包含某一个元素，如果包含返回true  ,否则返回false
        console.log(a)
        //-----------------------------------------------------------------------------------
        // Array.sort()//对数组进行排序--改变原数组--第一个元素的字符编码进行排序的，
        arr.sort()
        console.log(arr)
        //-----------------------------------------------------------------------------------
        
    </script>
</body>
</html>